package cn.legend.travel.admin.destination.dao.persist.mapper;

import cn.legend.travel.admin.destination.pojo.entity.District;
import cn.legend.travel.admin.destination.pojo.vo.DistrictAdminVO;
import cn.legend.travel.common.pojo.po.DistrictSimplePO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DistrictMapper extends BaseMapper<District> {

    List<DistrictSimplePO> getByParent(long pId);

    List<DistrictAdminVO> listByParent(Long pId);

}
